package br.com.linkcom.sined.geral.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;

import br.com.linkcom.neo.bean.annotation.DescriptionProperty;
import br.com.linkcom.neo.bean.annotation.DisplayName;
import br.com.linkcom.neo.validation.annotation.MaxLength;
import br.com.linkcom.neo.validation.annotation.Required;


@Entity
@SequenceGenerator(name="sq_ator", sequenceName="sq_ator")
@DisplayName("Ator")
public class Ator {

	protected Integer cdator;
	protected String nome;
	
	@Id
	@GeneratedValue(generator="sq_ator", strategy=GenerationType.AUTO)
	public Integer getCdator() {
		return cdator;
	}
	@Required
	@DisplayName("Nome")
	@MaxLength(100)
	@DescriptionProperty
	public String getNome() {
		return nome;
	}
	public void setCdator(Integer cdator) {
		this.cdator = cdator;
	}
	public void setNome(String nome) {
		this.nome = nome;
	}
}